import { MockMethod } from "vite-plugin-mock";
import util from "./util";
import Mock from "mockjs";

export default [
  {
    url: "/api/sales/list",
    method: "get",
    response: () => Mock.mock(util.getJsonfile("./data/salesData.json")),
  },
  {
    url: "/api/sales/areasales",
    method: "get",
    response: () => Mock.mock(util.getJsonfile("./data/areasalesData.json")),
  },
] as MockMethod[];
